package com.example.decorator;

import lombok.extern.slf4j.Slf4j;

/**
 * @Description :
 * @Author : Bruce Lee
 * @CreateTime : 2025/3/18
 */

@Slf4j
public class RedDecorator extends MyDecorator{

    public RedDecorator(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        this.shape.draw();
        this.setRed();
    }

    public void setRed() {
        log.info("set red");
    }
}
